import request from '@/utils/request'
// 水机


//获取水机列表
export function getSiteList(params) {
    return request({
        url: '/property/site',
        method: 'get',
        params
    })
}
export function getSiteSelectList(params) {
    return request({
        url: '/property/site/getSelectLists',
        method: 'get',
        params
    })
}
export function getSiteDetail(params) {
    return request({
        url: '/property/site/detail',
        method: 'get',
        params
    })
}
//添加
export function createSite(data) {
    return request({
        url: '/property/site/create',
        method: 'post',
        data
    })
}

//修改
export function updateSite(data) {
    return request({
        url: '/property/site/update',
        method: 'put',
        data
    })
}


//修改
export function changeFiledStatus(data) {
    return request({
        url: '/property/site/changeFiledStatus',
        method: 'put',
        data
    })
}


//删除
export function delSite(data) {
    return request({
        url: '/property/site/delete',
        method: 'delete',
        data
    })
}

